<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="layout.xhtml">
        <ui:define name="body">
            <br/>
            <h:form id="userForm" enctype="multipart/form-data">
                
                <h3 class="title">IPTU </h3>
                <div class="row">
                    
                    <h:form id="mapsForm" enctype="multipart/form-data">
                        
                        <div class="container_24 clearfix">
                            <p:pieChart title="Situação dos Imóveis" value="#{managerRelatorioIPTU.pieModelQtdImoveis}" legendPosition="w"  
                                        showDataLabels="true" style="width: 35%" dataFormat="value" styleClass="grid_12"/>
                            <div class="grid_12">
                                <p:dataTable var="valor" value="#{managerRelatorioIPTU.valores}">
                                    <f:facet name="header">
                                        <strong><h:outputText value="Valores" /></strong>
                                    </f:facet>
                                    
                                    <p:column headerText="Tipo IPTU">
                                            <h:outputText value="#{valor.key}" />
                                        </p:column> 

                                    <p:column headerText="Valor">
                                            <h:outputText value="#{valor.value}"/>
                                        </p:column>

                                    
                                </p:dataTable>
                            </div>
                        </div>
                        <div class="container_24 clearfix">
                            <p:pieChart  value="#{managerRelatorioIPTU.pieModelRegular}" legendPosition="w"  
                                         showDataLabels="true"  legendCols="3"  dataFormat="value" styleClass="grid_20"
                                         style="height: 370px"
                                         title="Quantidade de Imóveis Regulares por Bairro"  />
                        </div>
                        <div class="container_24 clearfix">
                            
                            <p:pieChart  value="#{managerRelatorioIPTU.pieModelIrregular}" legendPosition="w"  
                                         style="height: 370px"
                                         showDataLabels="true"  legendCols="3"  dataFormat="value" styleClass="grid_20"
                                         title="Quantidade de Imóveis Irregulares por Bairro"  />
                        </div>
                        
                        <div class="container_24 clearfix"> 
                            
                            <p:pieChart  value="#{managerRelatorioIPTU.pieModelValorIrregular}" legendPosition="w"  
                                         style="height: 370px"
                                         showDataLabels="true"  legendCols="3"  dataFormat="value" styleClass="grid_20"
                                         title="Valor que poderia ser ganho de IPTUs ignorados por Bairro"  />
                        </div>
                    </h:form>
                </div>  
            </h:form>
        </ui:define>
    </ui:composition>
</html>
